package com.hedl.studyandjava8.java8_flow.entity;

import java.io.Serializable;

/**
 * @author Big Watermelon
 * @description
 * @date 2024/02/16/19:29
 */
public class Transaction implements Serializable {
    private String name;

    @Override
    public String toString() {
        return "Transaction{" +
                "name='" + name + '\'' +
                ", sum=" + sum +
                '}';
    }

    private Integer sum;

    public Integer getSum() {
        return sum;
    }

    public void setSum(Integer sum) {
        this.sum = sum;
    }

    public Transaction() {
    }

    public Transaction(String name, Integer sum){
        this.name = name;
        this.sum = sum;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
